
<div class="row">
  <aside class="span6">
    <section>
      <h1>



        <%=   albumLogo @music %>
        <br>
        专辑名
        <h3><%= @music.album_name %></h3>

        艺术家
        <h4><%= @music.artist_name %></h4>
      </h1>
    </section>
    <section>
        <!--输出关于专辑的详细信息(从豆瓣api即时获取的)-->

      豆瓣标识号:
      <%= @music.douban_id %>


      <br/>
      <% unless @extend_info.nil? %>

          简介：
          <br/>
          <p>

            <%= @extend_info["summary"] %>


          </p>
          <p>Tracks

            <% arr=@extend_info["attrs"]["tracks"] %>
            <%if arr.any? %>
            <%= raw(arr[0].gsub("\n","<br>")) %>

            <% end %>

          </p>


          <% end %>

    </section>


  </aside>

  <div class="span6">

    <h3>下载地址 (<%= @music.download_urls.count %>)</h3>
    <% if @music.download_urls.count>0 %>


        <ol class="downloadUrlList">
          <%= render @music.download_urls %>
        </ol>

    <% end %>



    <%= form_for(@download_url) do |f| %>
        <%= render 'shared/error_messages', object: f.object %>

        <div class="field">

          <%= f.hidden_field("music_id",:value=>@download_url.music_id )  %>
          <%= f.text_area :url, placeholder: "新下载地址" %>
        </div>
        <%= f.submit "添加", class: "btn btn-large btn-primary" %>
    <% end %>

  </div>

</div>

<%= javascript_include_tag "music" %>